<!DOCTYPE html>
<html id="minwidth" xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo Yii::app()->language ?>" lang="<?php echo Yii::app()->language ?>">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta http-equiv="expires" content="Fri, 30 Dec 2012 12:00:00 GMT" />
	<meta http-equiv="Last-Modified" content="Tue, 03 Jul 2012 12:00:00 GMT" />
	
	<meta name="language" content="<?php echo Yii::app()->language ?>" />
	<meta name="author" content="<?php echo Yii::app()->params["author"] ?>">

	<!--[if lt IE 8]>
	<link rel="stylesheet" type="text/css" href="<?php echo bu(); ?>/css/ie.css" media="screen, projection" />
	<![endif]-->

	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->theme->baseUrl; ?>/css/main.css" />
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->theme->baseUrl; ?>/css/menu.css" />
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->theme->baseUrl; ?>/js/superfish/css/superfish.css" />
	<link rel="stylesheet" type="text/css" href="<?php echo bu(); ?>/css/short.css" />

	<title><?php echo CHtml::encode($this->pageTitle); ?></title>
	
	<link href="<?php echo bu(); ?>/images/favicon.ico" rel="shortcut icon" type="image/x-icon" />
	
	<?php cs()->registerCoreScript('jquery'); ?>
	<?php cs()->registerScriptFile(Yii::app()->theme->baseUrl.'/js/backend.js'); ?>
	<?php cs()->registerScriptFile(bu().'/js/FormChanges.js'); ?>
	<?php NHtml::RegisterFancybox(); ?>
	<?php 
		cs()->registerScriptFile(bu().'/js/superfish/js/jquery.bgiframe.min.js');
		cs()->registerScriptFile(bu().'/js/superfish/js/hoverIntent.js');
		cs()->registerScriptFile(bu().'/js/superfish/js/superfish.js');
		cs()->registerScriptFile(bu().'/js/superfish/js/supersubs.js');
		cs()->registerScript('superfish','
			$("ul.sf-menu").supersubs({minWidth:12,maxWidth:30,extraWidth:2}).superfish({speed:0});
		');
	 ?>

</head>

<body id="minwidth-body">
<div class="container">
	<div class="h_green" id="border-top">
		<div>
			<div>
				<span class="title"><?php echo Yii::app()->name ?></span>
			</div>
		</div>
	</div>

	<div id="header-box">
		<div id="module-status" class="right">
			<span class="preview"><a target="_blank" href="<?php echo $this->createUrl('/') ?>"><?php echo Yii::t('backend','Trang chủ') ?></a></span>
			<span class="logout"><a href="<?php echo $this->createUrl('/user/logout') ?>"><?php echo Yii::t('backend','Đăng xuất') ?></a></span>
		</div>

		<div id="module-menu" class="clearfix">
			<?php $this->widget('backend.components.TopNav') ?>
		</div>
	</div>

	<div id="content-box" class="phm ptm">
		<?php echo $content ?>
	</div>

	<div id="border-bottom"><div><div></div></div></div>

	<div id="footer" class="alc">
		<p>Developed by Công ty An Thịnh Phát.
		- 
		<?php echo Yii::powered() ?>
		</p>
	</div>
</div>

</body>
</html>